home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / misc / sci / xmgr12.lha / xmgr / README.EPS < prev    next >
Encoding:
Text File  |  1992-04-26  |  2.3 KB  |  75 lines

  1.  
  2.  
  3. This file attempts to assist in the conversion of xvgr generated PS
  4. to EPS. I'll continue to work on this - the main problem is that xvgr does
  5. not correctly compute the bounding box. If you are using Latex, I believe
  6. bbfig will give the correct bounding box. This (the BoundingBox line) should 
  7. be placed toward the beginning of the file rather than at the end of the
  8. PostScript output from xvgr.
  9.  
  10. Like:
  11.  
  12. %!PS-Adobe-2.0 EPSF-1.2
  13. %%Creator: XVGR v2.07
  14. %%Title: XVGR Graphics
  15. %%BoundingBox: 0 0 611 791 
  16.  
  17. And remove the bounding box comment at the end of the file.
  18.  
  19.  
  20. For Interleaf:
  21.  
  22. From Bruce Barnett (barnett@alydar.crd.ge.com) on including xvgr generated 
  23. files into Interleaf:
  24.  
  25. 2) I found a way to include XVGR files into Interleaf. This is what I did.
  26.     1) I saved the file in PostScript LansScape mode.
  27.     2) Ran the file thru the following sed filter:
  28.  
  29. #!/bin/sh
  30. # convert the XVGR postscript file into encapsulated postscript
  31. # usage
  32. #    xvgr2ps <p.out >p.eps
  33.  
  34. sed '
  35.  s/^%! PostScript/%!PS-Adobe-3.0 EPSF-3.0/
  36.  s/^showpage//
  37.  s/%%BoundingBox: [0-9]* [0-9]* [0-9]* [0-9]*/%%BoundingBox: 1 1 700 900/
  38. ----------------------------------
  39. This changes the format to meet the encapsulated postscript format.
  40. The commenting out of showpage should not be necessary, but I did it anyway.
  41.  
  42. I also had to edit the bounding box, as it seemed your numbers were off.
  43. (I typically got numbers like %%BoundingBox: 128 126 486 634)
  44. and this truncated the document when I printed it.
  45.  
  46. To include the PS file into interleaf, move the new file into your ~/desktop
  47. directory, rescan (to update the icons), and then select and cut/copy
  48. the document. Then you open your document, and paste it in.
  49.  
  50. It will be displayed as a gray rectangle, but you can resize it.
  51.  
  52. Bruce
  53.  
  54. ------------------------------------------------------
  55. From: phung@chem162 (Cu G. Phung)
  56.  
  57.         I have sucessfully used the following csh script to fix the
  58. xvgr postscript to be an EPSF file for inclusion in a tex document.
  59.  
  60. - CGP -
  61.  
  62. --------------- Cut Here for xvgr2eps -------------------
  63. #! /usr/bin/csh -f
  64. # convert the XVGR postscript file into encapsulated postscript
  65. # usage
  66. #       xvgr2eps xvgr-file.ps
  67. mv $1 tmp$$.ps
  68. unset noclobber
  69. echo '%\!PS-Adobe-3.0 EPSF-3.0' >! $1:r.ps
  70. echo '%%BoundingBox: 40 50 550 700' >> $1:r.ps
  71. sed '/%%Creator/,/%%Trailer/\!d' tmp$$.ps >> $1:r.ps
  72. /bin/rm -f tmp$$.ps
  73.  
  74.